//
//  HJCompletTicketView.m
//  project
//
//  Created by hu on 2019/4/9.
//  Copyright © 2019 健健. All rights reserved.
//
#import "HJEventkit.h"
#import "HJCompletTicketView.h"


@interface HJCompletTicketView ()
//@property (nonatomic,strong)
@property (weak, nonatomic) IBOutlet UIView *bgVIEW;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *location;
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UIView *airPlanView;
@property (weak, nonatomic) IBOutlet UILabel *airplanName;
@property (weak, nonatomic) IBOutlet UILabel *airSeat;
@property (weak, nonatomic) IBOutlet UILabel *airStarTime;
@property (weak, nonatomic) IBOutlet UILabel *airEndTime;
@property (weak, nonatomic) IBOutlet UILabel *staAirporet;
@property (weak, nonatomic) IBOutlet UILabel *endAirport;

@property (weak, nonatomic) IBOutlet UIButton *ticketBtn;
@end

@implementation HJCompletTicketView

-(instancetype)init {
    if (self == [super init]) {
        self = [[NSBundle mainBundle]loadNibNamed:@"HJCompletTicketView" owner:nil options:nil].firstObject;
    }
    return self;
}
-(void)awakeFromNib {
    [super awakeFromNib];
    [self.bgVIEW rounded:UIRectCornerAllCorners radius:10];
    [self.ticketBtn rounded:UIRectCornerAllCorners radius:15 borderColor:[UIColor colorWithHex:0xFE6A7F] borderWidth:1];
    [self.airPlanView rounded:UIRectCornerAllCorners radius:10];
}
- (IBAction)navigationBtnCliced:(UIButton *)sender {
}

- (IBAction)alarmClockBtnCliked:(UIButton *)sender {
    [[HJEventkit shareEventKit] initWithEventKitWithDataDic:@{} success:^(NSString * _Nonnull hudStr) {
        
    } error:^(NSString * _Nonnull errorStr) {
        
    }];
    
}
- (IBAction)ticketBtnCliked:(id)sender {
    NSLog(@"委托订票");
    if (self.ticketBtnClickedBlock) {
        self.ticketBtnClickedBlock();
    }
    
    
}
@end
